let mongodb = require("../server/config");

/*
* 价格
* */

let Schema = mongodb.mongoose.Schema;

let pigPriceSchema = new Schema({
  typeName: {type: String},  // 类型
  bottomPrice: {type: Number},  // 最低价格
  topPrice: {type: Number},  // 最高价格
  percent :{type: Number},// 利率
  days: {type: Number},// 天数
  startTime: {type: String}// 开始时间
});

let priceModel = mongodb.mongoose.model("pigPrices", pigPriceSchema);

exports.priceList = priceModel;
